package chapter11_1;

import chapter11_1.dao.CustomerMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Chapter11_1_Test {

    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("./chapter11_1/SpringWeb-servlet.xml");
        //通过Spring容器获取Bean实例helloBean
        CustomerMapper mapper = (CustomerMapper) context.getBean(CustomerMapper.class);
        //调用实例中print()方法
        mapper.findAllCust();
    }
}
